package com.two.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author 汪瑞明
 * @since 2022-08-29
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "Permission对象", description = "")
public class Permission implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("权限id")
    @TableId(value = "permissionid", type = IdType.AUTO)
    private Integer permissionid;

    @ApiModelProperty("权限名称")
    private String permissionname;

    @ApiModelProperty("子菜单")
    private Integer pid;

    @ApiModelProperty("图标")
    private String icon;

    @ApiModelProperty("逻辑删除 1（true）已删除， 0（false）未删除")
    @TableLogic
    private Boolean isDeleted;

    @ApiModelProperty("跳转路径")
    private String path;

    @ApiModelProperty("按钮路径")
    private String passpath;

    private String type;

    @TableField(exist = false)  //表示此属性不是数据库中的列。
    private List<Permission> children;
}
